package com.yyt.esdemo.entity;

import lombok.Data;
import org.springframework.data.annotation.Id;
import org.springframework.data.elasticsearch.annotations.Document;

/**
 * @author yeyangtao
 * @date 2020/5/26 10:03
 */
@Data
@Document(indexName = "users1")
public class User {
    @Id
    private int id;
    private String username;
    private String password;
    private int age;
}
